package com.itheima.project;

import com.baomidou.mybatisplus.core.incrementer.DefaultIdentifierGenerator;
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @Description：  ShopWebStart 商家管理  后台项目启动类
 */
@SpringBootApplication
@MapperScan("com.itheima.project.mapper")
public class AppletWebStart {

    public static void main(String[] args) {
        SpringApplication.run(AppletWebStart.class, args);
    }

    /**
     * @Description mybatis提供的主键生成策略【制定雪花】
     */
    @Bean
    public IdentifierGenerator identifierGenerator() {
        return new DefaultIdentifierGenerator();
    }
}
